package com.huike.springboot1.demos.Mapper;

import com.huike.springboot1.demos.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
//    没有加#号的都是数据库中的字段，
//    字段非空且不重复，可以在数据库中设置唯一索引
    @Select("select * from user where username = #{username} and password = #{password}")
    public User checkUser(User user);
}
